package com.cnswhy.cloud.server.core.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.cnswhy.cloud.common.core.base.entity.Entity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cnswhy.cloud.common.core.base.entity.SuperEntity;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 店铺设置基本信息
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MerchantSettingUpdateDTO", description = "店铺设置基本信息")
public class MerchantSettingUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    @ApiModelProperty(value = "")
    @NotNull(message = "不能为空")
    private Long merchantId;
    /**
     * logo
     */
    @ApiModelProperty(value = "logo")
    @NotEmpty(message = "logo不能为空")
    @Length(max = 255, message = "logo长度不能超过255")
    private String logoImg;
    /**
     * 背景图
     */
    @ApiModelProperty(value = "背景图")
    @NotEmpty(message = "背景图不能为空")
    @Length(max = 255, message = "背景图长度不能超过255")
    private String backgroundImg;
    /**
     * 海报
     */
    @ApiModelProperty(value = "海报")
    @Length(max = 255, message = "海报长度不能超过255")
    private String posterImg;
    /**
     * 主页简介
     */
    @ApiModelProperty(value = "主页简介")
    @Length(max = 65535, message = "主页简介长度不能超过65,535")
    private String homeDesc;
    /**
     * 店铺详情
     */
    @ApiModelProperty(value = "店铺详情")
    @Length(max = 65535, message = "店铺详情长度不能超过65,535")
    private String shopDetail;
    @ApiModelProperty(value = "")
    private LocalDateTime createDate;
    @ApiModelProperty(value = "")
    private LocalDateTime updateDate;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String logoUrl;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String backgroundUrl;
    @ApiModelProperty(value = "")
    @Length(max = 255, message = "长度不能超过255")
    private String posterUrl;
}
